﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

/// <summary>
/// Summary description for Local_session
/// </summary>
public class Local_session
{
	public Local_session()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static List<Local> GetList_Local()
    {
        List<Local> lst = new List<Local>();
        DataTable dt = DataProvider.GetDataTable("select * from Local");
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            Local local = new Local();
            local.Local_ID = (dt.Rows[i]["Local_ID"] is DBNull) ? int.MinValue : (System.Int32)dt.Rows[i]["Local_ID"];
            local.Local_Name = (dt.Rows[i]["Local_Name"] is DBNull) ? string.Empty : (System.String)dt.Rows[i]["Local_Name"];
            local.Local_Status = (dt.Rows[i]["Local_Status"] is DBNull) ? false : (System.Boolean)dt.Rows[i]["Local_Status"];
            lst.Add(local);
        }
        return lst;
    }
}
